[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-16 Thread Henning Hraban Ramm
over new frontiers: NTS, MetaFun, Oriental TeX, LuaTeX, mplib, LuaMetaTeX… They’re also dubbed the incisors (AKA cutting edge) of the dinosaur of Open Source. ConTeXt is aimed at creative users, known for advanced features like extensive font control and direct XML processing, with a deep

[NTG-context] context editor support / syntax highlighting for Pulsar

2024-04-01 Thread Henning Hraban Ramm
lected do local combined = { } add(combined,whatever,"commands") add(combined,whatever,"environments") if interface == "common" then add(combined,whatever,"textnames") add(combined,whatever,"

[NTG-context] Re: upload

2024-04-01 Thread Otared Kavian
upport for envelopes (penbased outlines) in metafun. This is still work in progress, some is present and discussed in the manual, and we'll come back to that sometime next month. Given the next item, we also might need to change some in the manual (different focus).-- Because we have users who have to c

[NTG-context] Re: upload

2024-04-01 Thread Mikael Sundqvist
ented metapost) features. > > -- In the process, support for LCH colors has been added, which is > documented in the (eg luametafun manual). > > -- The math manual is not yet there because we were distracted by > improving support for envelopes (penbased outlines) in metafun. This is > still wo

[NTG-context] upload

2024-04-01 Thread Hans Hagen
in the (eg luametafun manual). -- The math manual is not yet there because we were distracted by improving support for envelopes (penbased outlines) in metafun. This is still work in progress, some is present and discussed in the manual, and we'll come back to that sometime next month. Given

[NTG-context] Re: how to include an an svg file?

2024-03-16 Thread Jean-Pierre Delange
nts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 2, name './ctx-test-MetaPost-pdf.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern rm 12pt' is loaded structu

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread Jean-Pierre Delange
gradients, MetaPost needs to work with Metafun (see here : https://wiki.contextgarden.net/Color_in_MetaPost). Perhaps an image in *.png format is required. But I can't give any advice, as I'm not an experienced MetaPost/Metafun user. see this code below and the result as attached file

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm
mp-sketch; %D %Dbeginfig(1) %D sketchypaths; % Make draw and fill sketchy %D ... %D naturalizepaths; % Restore the value of draw and fill %D ... %Dendfig %D \stoptyping %D %D The code is heavily inspired by Hans Hagen's Metafun macros. %D %D The macro \type{sketch

[NTG-context] Re: Sorry for once more asking, i am at Work

2024-02-20 Thread Gavin via ntg-context
eX Live 2023). In ConTeXt > terms, this is almost ancient (»uralt«). Just to clarify, TeX Live 2023 has a perfectly good, rather up-to-date version of ConTeXt. I’m using it to typeset books and papers with all sorts of MetaFun craziness. However, if I attempt to typeset one of these ConTeXt d

[NTG-context] Re: lmt_shade fails

2024-02-19 Thread Keith McKay
to use the lmt_shade function and it fails with two error messages. > the first one is: > *metafun > log > error: Not a cycle* > followed by lots of trace messages, then: > *metafun > log > That contour should have ended with '.. cycle' or '& > cycle'. So I'll

[NTG-context] Re: lmt_shade fails

2024-02-19 Thread Fabrice L
Dear Keith, > Le 18 févr. 2024 à 11:44, Keith McKay a écrit : > > Hi all > I went to use the lmt_shade function and it fails with two error messages. > the first one is: > > metafun > log > error: Not a cycle > > followed by lots of trace messages,

[NTG-context] lmt_shade fails

2024-02-18 Thread Keith McKay
Hi all I went to use the lmt_shade function and it fails with two error messages. the first one is: /metafun > log > error: Not a cycle/ followed by lots of trace messages, then: /metafun > log > That contour should have ended with '.. cycle' or '& cycle'. So I'll not change/

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Wolfgang Schuster
Shiv Shankar Dayal schrieb am 24.01.2024 um 17:06: I am writing two books. One is on Rust programming and another is on geometry, so I have syntax highlighted code and in second has lost of diagrams. Perhaps Aditya Mahajan can tell me how can I cache code snippets. Invoking VIM will have

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Shiv Shankar Dayal
> > > > Caching is enabled out of the box, so you don't need to configure > anything. > > > >> Other than that, how can I cache Metafun images so that they are not > >> recomputed on every processing of file. > > > > There used to a command for caching

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Hans Hagen
/filter/blob/dev/vim-README.md Caching is enabled out of the box, so you don't need to configure anything. Other than that, how can I cache Metafun images so that they are not recomputed on every processing of file. There used to a command for caching metafun images in MkII, but I don't know

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Aditya Mahajan
aching is enabled out of the box, so you don't need to configure anything. > Other than that, how can I cache Metafun images so that they are not > recomputed on every processing of file. There used to a command for caching metafun images in MkII, but I don't know if that is really needed in LMTX. I

[NTG-context] Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Shiv Shankar Dayal
than that, how can I cache Metafun images so that they are not recomputed on every processing of file. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Shiv Shankar Dayal
Can we please add https://github.com/jemmybutton/byrne-euclid/blob/master/byrne.mp to Wiki because files have a tendency to disappear? Similarly, can we please add https://github.com/thruston/Drawing-with-Metapost/blob/main/Drawing-with-Metapost.pdf file to Wiki? -- Respect, Shiv Shankar Dayal

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Shiv Shankar Dayal
The fiziko library by the same author is also very interesting: > https://github.com/jemmybutton/fiziko > Since it has some pseudo-3D features, maybe you can learn from it. > Thanks for all this info. I will look into this and perhaps come up with a Metapost file, and then we can possibly add

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Henning Hraban Ramm
, and would work with MetaFun (I think). The LaTeX package is in TeX Live, and the ConTeXt version is at https://github.com/jemmybutton/byrne-euclid/. The fiziko library by the same author is also very interesting: https://github.com/jemmybutton/fiziko Since it has some pseudo-3D features, maybe you can

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Gavin via ntg-context
Hi Shiv, The author of tikz-euclide has another package, tikz-elements, which looks like it could be used to do all of these calculations for MetaFun. The tikz-elements package, in spite of its name, appears to contain exactly one line of TikZ code. This line is in the very simple style file

[NTG-context] Re: Asking help for better way to make tickets.

2024-01-13 Thread Jeong Dal via ntg-context
Dear Bruce and Marco, Thank you for your suggestions. I think that it would be good enough to replace my code. I learned new method which doesn’t use metaFun. I’ll modify what you suggested for my purpose. Thank you again. Best regards, Dalyoung > 2024. 1. 13. 오전 7:38, Bruce Horrocks

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Shiv Shankar Dayal
. I understand that most of it is very easy, but still a library will help new users. Tikz has Tikz-Euclide and Asymptote has a Geometry package. A similar library for Metafun will be very useful. -- Respect, Shiv Shankar Dayal

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Aditya Mahajan
On Fri, 12 Jan 2024, Shiv Shankar Dayal wrote: > Do we have a geometry library for common operations like finding tangents, > perpendiculars, circumcircle, orthocenters and such? No library that I know of, but drawing tangents (and therefore, perpendiculars) is straight-forward:

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Shiv Shankar Dayal
etry library for common operations like finding > tangents, perpendiculars, circumcircle, orthocenters and such? > > I don’t think we have anything like that specifically in the MetaFun > world, but if there is a MetaPost package you like, you can use it with > MetaFun. For example, the TeX

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Gavin via ntg-context
Hi Shiv, > Do we have a geometry library for common operations like finding tangents, > perpendiculars, circumcircle, orthocenters and such? I don’t think we have anything like that specifically in the MetaFun world, but if there is a MetaPost package you like, you can use it with M

[NTG-context] Do we have a geometry library for Metafun?

2024-01-12 Thread Shiv Shankar Dayal
Do we have a geometry library for common operations like finding tangents, perpendiculars, circumcircle, orthocenters and such? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well,

[NTG-context] Re: Metapost docs

2024-01-11 Thread Hans Hagen
On 1/11/2024 4:54 PM, Shiv Shankar Dayal wrote: Dear Gavin, I am aware of these resources. My question is about docs of those Metapost libs which are in the distribution in Metapost directory. If something is not in the metafun, luametafun or another manual, then you should not use it as it's

[NTG-context] Re: Metapost docs

2024-01-11 Thread Shiv Shankar Dayal
ces I use, > roughly in the order I search when trying to solve a problem. > > - MetaFun Manual (http://www.pragma-ade.nl/general/manuals/metafun-p.pdf) > This is most comprehensive and helpful source. > - MetaPost Manual (http://mirrors.ctan.org/systems/doc/metapost/mpman.pdf) > This

[NTG-context] Re: Metapost docs

2024-01-11 Thread Gavin via ntg-context
Hi Shiv, I am working with MetaPost in ConTeXt. Here are the resources I use, roughly in the order I search when trying to solve a problem. - MetaFun Manual (http://www.pragma-ade.nl/general/manuals/metafun-p.pdf) This is most comprehensive and helpful source. - MetaPost Manual (http

[NTG-context] Re: Chemnitz, Leipzig, Call for Poster

2024-01-11 Thread Fabrice L
stuff, there should be something > connecting them. It should be interesting to look at as well as basic > information about ConTeXt. > Hraban > The suite ConTeXt/Metafun is so powerful, and can do so much different things, as already mentioned, that it can be difficult to present it in

[NTG-context] Re: Chemnitz, Leipzig, Call for Poster

2024-01-10 Thread Henning Hraban Ramm
Am 10.01.24 um 08:00 schrieb juh via ntg-context: Am Sun, Jan 07, 2024 at 09:59:14AM +0100 schrieb Henning Hraban Ramm: I’d like to have a poster that shows off ConTeXt/MetaFun features. Do you have suggestions or (even better) would you like to create it? It would be nice to have for further

[NTG-context] Re: Chemnitz, Leipzig, Call for Poster

2024-01-10 Thread Hans Hagen via ntg-context
On 1/10/2024 8:00 AM, juh via ntg-context wrote: Dear Hraban, Am Sun, Jan 07, 2024 at 09:59:14AM +0100 schrieb Henning Hraban Ramm: I’d like to have a poster that shows off ConTeXt/MetaFun features. Do you have suggestions or (even better) would you like to create it? It would be nice to have

[NTG-context] Re: Chemnitz, Leipzig, Call for Poster

2024-01-09 Thread juh via ntg-context
Dear Hraban, Am Sun, Jan 07, 2024 at 09:59:14AM +0100 schrieb Henning Hraban Ramm: > I’d like to have a poster that shows off ConTeXt/MetaFun features. > Do you have suggestions or (even better) would you like to create it? > It would be nice to have for further events (last year I

[NTG-context] Re: Metapost docs

2024-01-08 Thread Hans Hagen via ntg-context
On 1/8/2024 1:50 AM, Shiv Shankar Dayal wrote: I see many libraries for Metapost in Context source. Where are these documented? I see Metafun manual as well, but I do not find all the included libraries described. i'm not sure what you mean with library ... can you give an example? Hans

[NTG-context] Metapost docs

2024-01-07 Thread Shiv Shankar Dayal
I see many libraries for Metapost in Context source. Where are these documented? I see Metafun manual as well, but I do not find all the included libraries described. -- Respect, Shiv Shankar Dayal ___ If your

[NTG-context] Chemnitz, Leipzig, Call for Poster

2024-01-07 Thread Henning Hraban Ramm
Hi folks, in March, there’ll be Linux Days in Chemnitz/Germany (Chemnitzer Linuxtage, https://chemnitzer.linux-tage.de/2024/en/), an OSS fair. DANTE usually has a booth there, and this time I’ll help. I’d like to have a poster that shows off ConTeXt/MetaFun features. Do you have suggestions

[NTG-context] Re: MetaFun path joiners && and &&&& do not like single point paths

2023-12-31 Thread Gavin via ntg-context
Hi Hans and Mikael, Thanks for your solutions. I’m happy to discard paths that have no area, so I used: q = for i = 1 upto 3 : if (length(p[i]) > 1): p[i] && fi endfor cycle ; This worked in the MWE, but it didn’t solve my problem in the globes module. Something else must be

[NTG-context] Re: MetaFun path joiners && and &&&& do not like single point paths

2023-12-31 Thread Hans Hagen via ntg-context
On 12/31/2023 8:06 AM, Mikael Sundqvist wrote: \startMPpage path p[], q ; p1 = fullcircle scaled 3cm ; p2 = fullcircle scaled 2cm shifted (3cm,0) ; p3 = (3cm,2cm) ; p4 = fullcircle ; q = p[1] for i = 2 upto 3: if (length(p[i]) == 0): &&& else: && fi p[i] endfor && cycle ; eofill q withcolor 0.9

[NTG-context] Re: MetaFun path joiners && and &&&& do not like single point paths

2023-12-30 Thread Mikael Sundqvist
Hi On Sun, Dec 31, 2023 at 3:33 AM Gavin via ntg-context wrote: > > Hi MetaFun fans, > > Following a suggestion of Hans, I experimented with && and &&& and &&&& for > joining paths in MetaFun. The joiner &&& produces one long pat

[NTG-context] MetaFun path joiners && and &&&& do not like single point paths

2023-12-30 Thread Gavin via ntg-context
Hi MetaFun fans, Following a suggestion of Hans, I experimented with && and &&& and &&&& for joining paths in MetaFun. The joiner &&& produces one long path, but && and &&&& seem to produce a disconnected path which in

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Gavin via ntg-context
Hi Shiv and Fabrice, > On Dec 30, 2023, Shiv Shankar Dayal wrote: > It would be nice to either support Metapost 3D or Asymptote. > On Dec 6, 2021, Fabrice L wrote: > I would be very interested to see an example of a Metafun drawing made with > the help of LuaTeX to speed up so

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-18 Thread Hans Hagen via ntg-context
and calculates paths. These paths are passed to MetaFun, which draws the globe. about names: how about t-luageo.lmt t-luageo.mpxl so that one knows what comes with the module (we do the same with s-* modules) and you can add the example to the end of the module \continueifinputfile{t-luageo.mkxl

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-17 Thread Hans Hagen via ntg-context
and calculates paths. These paths are passed to MetaFun, which draws the globe. Just some quiks remarks ... - you use the right strategy (tex/lua/mp) - in mp you can do this vardef theglobe(expr lat, lon) = for i = 1 upto lua.mp.makeglobe(lat, lon): (lua.mp.getglobepath(i

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-17 Thread Hans Hagen via ntg-context
\typesetbuffer[demo] 2. How do I organize this according to TDS for sharing? I know what TDS is and why it’s important, but that’s about it! Hraban will guide you here. 3. Should I be creating a namespace for this module, or launching a separate MetaFun instance? I have a general sense of what

[NTG-context] Seeking advice for module that draws globes

2023-12-17 Thread Gavin via ntg-context
Hello ConTeXters, I wrote a little ConTeXt module for drawing globes. I would love some advice on how to improve it and share it. The code is quite short (about 250 lines). Most of the work is done by Lua, which reads the data files and calculates paths. These paths are passed to MetaFun

[NTG-context] Drawing calligraphy practice grid in metafun

2023-11-20 Thread Andres Conrado Montoya
solution. This adventure started with the usual insidious idea: "I could do this in ConTeXt! And this is a great opportunity to learn metafun!" A couple weeks later, I have an almost ready product! It compiles fine, but I have the following issue: The template creates a Line, composed o

[NTG-context] MP: problems with dashed lines

2023-10-22 Thread Henning Hraban Ramm
Hi, I wanted to use dashed lines as folding marks, but apparently they only work with pencircle, or at least not with pensquare. The Metafun manual (Reference, C5) also shows a problem with "dashed oddly", that I can’t reproduce in this MWE: \startMPpage draw (0,0)--(100,10

[NTG-context] Re: Gray gradient with Metapost

2023-10-07 Thread Keith McKay
h = (z0--z4--z5--z1--cycle),               direction = "left",               alternative = "linear",               colors = {"black", "lightgray"},             ] ; Le ven. 6 oct. 2023 à 08:27, Henning Hraban Ramm a écrit : While the luametafun (“Metaf

[NTG-context] Re: Gray gradient with Metapost

2023-10-07 Thread Fabrice Couvreur
= "linear", colors = {"black", "lightgray"}, ] ; Le ven. 6 oct. 2023 à 08:27, Henning Hraban Ramm a écrit : > While the luametafun (“Metafun XL”) manual is also (meta)fun, I meant > the general metafun(-s|-p) manual, the big one (>400 p.

[NTG-context] Re: Gray gradient with Metapost

2023-10-06 Thread Henning Hraban Ramm
While the luametafun (“Metafun XL”) manual is also (meta)fun, I meant the general metafun(-s|-p) manual, the big one (>400 p. in the “print” version, >600 p. in the “screen” version). Recommended! Hraban Am 06.10.23 um 10:08 schrieb Keith McKay: Also look at the LuaMetaFun manual cha

[NTG-context] Re: Gray gradient with Metapost

2023-10-06 Thread Keith McKay
in, if possible, a gray gradient like in the image. > > My code uses Metapost but maybe this is possible with Metafun. > > Have a look into the Metafun manual, chapter 8.1 “shading”. > > Hraban > > > ___

[NTG-context] Re: How can I use a variable for a MetaPost coordinate ?

2023-10-05 Thread peter.hopcroft--- via ntg-context
Yes, indeed. The metafun manual also explains things about overlays and layers I hadn't known. I'd previously ignored that manual. Thank you, Peter > On 5/10/2023, at 7:05 PM, Thomas A. Schmitz > wrote: > > Have a look at chapter 6.4 of the metafun manual. You need StartPage ...

[NTG-context] Re: Gray gradient with Metapost

2023-10-05 Thread Henning Hraban Ramm
Am 05.10.23 um 21:50 schrieb Fabrice Couvreur: Hi, I would like to obtain, if possible, a gray gradient like in the image. My code uses Metapost but maybe this is possible with Metafun. Have a look into the Metafun manual, chapter 8.1 “shading”. Hraban

[NTG-context] Gray gradient with Metapost

2023-10-05 Thread Fabrice Couvreur
Hi, I would like to obtain, if possible, a gray gradient like in the image. My code uses Metapost but maybe this is possible with Metafun. Thanks. Fabrice \starttext \startMPcode u=1.2cm; interim ahangle := 30; z0=(0,0); z1=(3u,0

[NTG-context] Re: How can I use a variable for a MetaPost coordinate ?

2023-10-05 Thread Thomas A. Schmitz
Have a look at chapter 6.4 of the metafun manual. You need StartPage ... StopPage in your MPcode, then you can knock yourself out by using variables such as PaperHeight or TextHeight and do all sorts of calculations. All best Thomas On 10/5/23 05:54, peter.hopcroft--- via ntg-context wrote

[NTG-context] Re: new upload

2023-08-15 Thread Hans Hagen via ntg-context
body) font size tw : (layout) text width th : (layout) text height hs : (current) hsize vs : (current) vsize cd : (when set) column distance cw : (when set) column width cx : combination cell width uu : user unit (\METAFUN) Many thanks for the new release, Hans. I wonder whether we could have

[NTG-context] Re: new upload

2023-08-15 Thread Pablo Rodriguez
font size > tw : (layout) text width > th : (layout) text height > hs : (current) hsize > vs : (current) vsize > cd : (when set) column distance > cw : (when set) column width > cx : combination cell width > uu : user unit (\METAFUN) Many thanks for the new release, Hans. I wo

[NTG-context] new upload

2023-08-15 Thread Hans Hagen
. One of the predefined units is 'uu' with an associated \ununit (dimension) variable and it's is also interfaced to metafun. That means that when you use uu in metapost graphics you have to make sure that you save the meaning and/or numeric uu now. The idea is that just as in mp one can say

[NTG-context] Re: ideas for ConTeXt stickers?

2023-08-07 Thread Henning Hraban Ramm
cker camps. Looking at other stickers I guess hacker humor is often a bit crude or pubertal. I didn’t say we should print this design – Moss or maybe DANTE will. I’d like to have some interesting/funny stickers to promote ConTeXt (and MetaPost/MetaFun). And while I like the Dodo, it’s a MkII

[NTG-context] Re: context-on-web broken

2023-07-04 Thread Fabrice L
, thanks a lot ! Most often, I’m isolated working with ConTeXt, most collaborators using LaTeX. Of course, some have seen the amazing things we can do with ConTeXt, and are using it a bit, but installation remains a challenge for most of them. Being able to work and share an overleaf project

Re: [NTG-context] TikZ \shade broken

2023-06-26 Thread Gavin via ntg-context
ified form just for this purpose because >> the performance penalty is less now.) > > If you have a chance to add a dir keyword, that would be great. Since the > keyword is used inside a TikZ macro, I don’t see any way I can work around it > in my document. > > I am gr

Re: [NTG-context] TikZ \shade broken

2023-06-19 Thread Gavin via ntg-context
he keyword is used inside a TikZ macro, I don’t see any way I can work around it in my document. I am gradually converting my diagrams from TikZ to MetaFun, but with well over a hundred diagrams in my cur

[NTG-context] FYI: created with LMTX

2023-05-21 Thread Gerben Wierda via ntg-context
TAPOST/Metafun to produce the graphics). Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon <https://newsie.social/@gctwnl>) R IT Strategy <https://ea.rna.nl/> (main site) Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
connect ("fermion", __i2, __v2, __o2); vconnect ("photon", __v1, __v2); vfreeze; vdraw; endsubgraph; endchar; \stopMPpage \stoptext but compiling that fails with metapost> trace > metapost> trace > loading metafun fo

Re: [NTG-context] tikz error upgrading to texlive version (artix)

2023-03-31 Thread Xavier B. via ntg-context
the package. > > > > I have reverted to using mkiv for my course notes, because I heavily use > > pgfplots and that is not working in LMTX. (I was also using some nice new > > features of metafun, and have had to resort to compiling them externally > > using

Re: [NTG-context] tikz error upgrading to texlive version (artix)

2023-03-31 Thread Hans Hagen via ntg-context
features of metafun, and have had to resort to compiling them externally using LMTX via the filter module and compiling the main doc with MkIV). afaik tikz should work ok, so can you make a test file? Hans

Re: [NTG-context] tikz error upgrading to texlive version (artix)

2023-03-30 Thread Aditya Mahajan via ntg-context
that time, it appeared that I was the only have having issues, so I thought that I was making a mistake in how I was installing the package. I have reverted to using mkiv for my course notes, because I heavily use pgfplots and that is not working in LMTX. (I was also using some nice new fea

Re: [NTG-context] Chapter title in MetaFun manual.

2023-02-10 Thread Jeong Dal via ntg-context
Dear all, I think that I found the cause. The page layout of my file is different from that of MetaFun manual. After borrowing the \setuplayout from MetaFun-000.tex, it works correctly. I am sorry to give you a wrong example. Thank you for reading. Best regards, Dalyoung > 2023. 2. 10.

[NTG-context] Chapter title in MetaFun manual.

2023-02-10 Thread Jeong Dal via ntg-context
Dear all, I copied the code of defining chapter command from metafun-000.tex, and run it. But the result is different from that in MetaFun Manual. There is a big spaces between the number and the title which yields the number cannot be seen. I commented out several lines which seems

Re: [NTG-context] MP figure continuation

2023-01-06 Thread Alexandre Christe via ntg-context
Aye, thanks Mikael and Gavin. Hard 2023 re-start... Le ven. 6 janv. 2023 à 15:58, Gavin a écrit : > Hi Alex, > > > Is there a way to "continue" an MP figure? Like keeping the axes, etc. > and just adding code to the figure? > > Buffers might be what yo

Re: [NTG-context] MP figure continuation

2023-01-06 Thread Gavin via ntg-context
Hi Alex, > Is there a way to "continue" an MP figure? Like keeping the axes, etc. and > just adding code to the figure? Buffers might be what you want. From the MetaFun manual: > Buffers can be used to stepwise build graphics. By putting code in multiple > buffers, you c

[NTG-context] How to buy a copy of NTG MAPS 52 (2022.1)

2023-01-06 Thread Keith McKay via ntg-context
the article by Fabrice Larribe "MetaFun for generative art (English)" within that volume. The article was also mentioned in Chapter 7 of the manual "On Target". Best Wishes Keith McKay ___ If your que

[NTG-context] lmtx upload

2023-01-04 Thread Hans Hagen via ntg-context
Hi, I uploaded the first 2023 lmtx. There are not that many changes, most relate to updating manuals. Currently we're looking at the metafun / luametafun and lowlevel manuals - adding some accumulated todo's. Keep in mind that when we update manuals that is is not automatically reflected

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-21 Thread Hans Hagen via ntg-context
On 12/21/2022 3:05 PM, Gavin via ntg-context wrote: Hi Alexandre and Hans, I also get no connectors drawn when I typeset Hans’s example file, anchors-002, using, ConTeXt ver: 2022.12.15 18:12 LMTX fmt: 2022.12.21, on my M1 Mac. Same error regarding anch_box_arrows_draw. The file works fine

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-21 Thread Gavin via ntg-context
Hi Alexandre and Hans, I also get no connectors drawn when I typeset Hans’s example file, anchors-002, using, ConTeXt ver: 2022.12.15 18:12 LMTX fmt: 2022.12.21, on my M1 Mac. Same error regarding anch_box_arrows_draw. The file works fine with ConTeXt ver: 2022.12.07 20:24 LMTX fmt:

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-18 Thread Alexandre Christe via ntg-context
Hi Hans, On osx-64 I'm not getting a single connector printed when compiling anchor-002.tex. I've attached the log in case. Am I doing something wrong on my end? Le ven. 16 déc. 2022 à 17:56, Hans Hagen via ntg-context a écrit : > On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: >

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-16 Thread Hans Hagen via ntg-context
On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: Hi Hans, Thanks for the new release and the nice anchoring features. I played a little bit with these, and noticed some issues: in the following example, linking the bottom bounds of the integral signs is fine (as long as numbers

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-16 Thread Hans Hagen via ntg-context
On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: Hi Hans, Thanks for the new release and the nice anchoring features. I played a little bit with these, and noticed some issues: in the following example, linking the bottom bounds of the integral signs is fine (as long as numbers

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Otared Kavian via ntg-context
Hi Hans, Thanks for the new release and the nice anchoring features. I played a little bit with these, and noticed some issues: in the following example, linking the bottom bounds of the integral signs is fine (as long as numbers are put there), but for the upper bounds, the \infty and \pi/2

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Hans Hagen via ntg-context
On 12/15/2022 5:15 PM, Gavin wrote: Hi Hans and List, 2) Can I tell \connectboxanchors to use my MetaPost code and pass key=value pairs like I do with \setMPpositiongraphic? see attached ... the 'cross pages' feature is in the upcoming This indeed passes key=value pairs, but I cannot get

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Gavin via ntg-context
Hi Hans and List, >> 2) Can I tell \connectboxanchors to use my MetaPost code and pass key=value >> pairs like I do with \setMPpositiongraphic? > see attached ... the 'cross pages' feature is in the upcoming This indeed passes key=value pairs, but I cannot get it to pass mine. Is there some

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Hans Hagen via ntg-context
On 12/15/2022 4:20 AM, Gavin via ntg-context wrote: Hello MetaFun Math Lovers, I am using MetaFun to attach diagrams to formulas. Both the physics and the typesetting are going great! I attached a sample below, to give a taste of what I am trying to do. This page of actual calculations has

[NTG-context] Mathematical MetaFun Mania

2022-12-14 Thread Gavin via ntg-context
Hello MetaFun Math Lovers, I am using MetaFun to attach diagrams to formulas. Both the physics and the typesetting are going great! I attached a sample below, to give a taste of what I am trying to do. This page of actual calculations has examples of almost everything I need. It’s a lot

Re: [NTG-context] Is this possible to do the same

2022-12-12 Thread Ursula Hermann via ntg-context
use the MetaFun features of ConTeXt to cross out stuff. % Cancel command for use in equations. \startuniqueMPgraphic{cross out} picture cross; cross := image(draw (0,0)--(1,1); draw (0,1)--(1,0);); draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircle scaled .8pt

Re: [NTG-context] Is this possible to do the same

2022-12-12 Thread Gavin via ntg-context
Hi Uschi, I use the MetaFun features of ConTeXt to cross out stuff. % Cancel command for use in equations. \startuniqueMPgraphic{cross out} picture cross; cross := image(draw (0,0)--(1,1); draw (0,1)--(1,0);); draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircle

Re: [NTG-context] annotated equations

2022-11-17 Thread Hans Hagen via ntg-context
timulating metafun (attached a quick and dirty copy of one of our many todo docs) Hans (who every time he sees something called 'mastodon' has to smile and remember reading https://eu.palmbeachdailynews.com/story/entertainment/2020/10/16/carl-hiaasen-writes-pythons-palm-beach-and-potus-new-book/

[NTG-context] Perceptrons

2022-10-16 Thread Thangalin via ntg-context
Okay, they aren't _real_ perceptrons, but fancy parameterized trees connected on a hex grid, coded with MetaFun and Lua. Big version: https://pdfhost.io/v/piuN04dSq_perceptron If anyone is interested in the full source code, let me know. I couldn't get "angle" to work properly.

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-10 Thread Joel via ntg-context
ple to do with layers/backgrounds + MetaFun. If you want for there to be exactly three rules per paragraph, then that is more complicated. I can think of some bad solutions (\everypar, Lua callbacks), but I'll leave it to someone else to think of a good solution. Thank

Re: [NTG-context] startTEXpage on A4

2022-10-10 Thread Willi Egger via ntg-context
I would suggest the approach of Wolfgang because the standard setting of \framed(texts)’ width is fit and the height setting can be changed to this too. Further I would suggest to use an overlay and a Metafun graphic for the cut-indicators. \defineoverlay[Cutpointstight][\useMPgraphic

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-10 Thread Max Chernoff via ntg-context
Hi Joel, > I'd like to add some area for readers to write in the margins of some > text. This would leave three lines, like this to the right of the > text. Is it okay if there are rules continuously down the right column? If so, this is fairly simple to do with layers/backgrounds

Re: [NTG-context] update old MP code

2022-09-01 Thread Henning Hraban Ramm via ntg-context
never know which function is part of MetaPost/MetaFun, my editor’s syntax highlighting is incomplete... Hraban moireetest.tex Description: TeX document ___ If your question is of interest to others as well, please add

[NTG-context] update old MP code

2022-09-01 Thread Henning Hraban Ramm via ntg-context
Hi, here’s a snippet of old Metapost code that I’d like to use in ConTeXt. I didn’t manage to update it to MetaFun – can you help me? Hraban - \setupbodyfont[plex,ss,8bp] \startreusableMPgraphic{moiree} % 1994 by Bogusław Jackowski (GUST) defaultfont := "\truefontname{Sans}&quo

Re: [NTG-context] metafun paralleled does not give a parallel path

2022-08-25 Thread Hans Hagen via ntg-context
On 8/25/2022 6:05 PM, Bruce Horrocks via ntg-context wrote: I'm seeing the line + arcs behaviour here. fixed in upload (we had a bug in mplib .. direction is now a primitive so that one was wrong) Hans -

Re: [NTG-context] metafun paralleled does not give a parallel path

2022-08-25 Thread Bruce Horrocks via ntg-context
I'm seeing the line + arcs behaviour here. ConTeXt ver: 2022.08.05 11:44 LMTX fmt: 2022.8.5 int: english/english > On 25 Aug 2022, at 13:03, Fabrice L via ntg-context > wrote: > > Hi, > >> Le 24 août 2022 à 22:50, fv leung via ntg-context a >> écrit : >> >> The following used to

Re: [NTG-context] metafun paralleled does not give a parallel path

2022-08-25 Thread Fabrice L via ntg-context
Hi,Le 24 août 2022 à 22:50, fv leung via ntg-context a écrit :The following used to produce three parallel lines.Now it produces one straight line and two arcs.\starttext\startMPcode  z0 = origin;  z1 = 72dir(45);  dotlabel.bot("z0", z0);  draw z0--z1;  draw (z0--z1)

[NTG-context] metafun paralleled does not give a parallel path

2022-08-24 Thread fv leung via ntg-context
The following used to produce three parallel lines. Now it produces one straight line and two arcs. \starttext \startMPcode z0 = origin; z1 = 72dir(45); dotlabel.bot("z0", z0); draw z0--z1; draw (z0--z1) paralleled -15 withcolor red; draw (z0--z1) paralleled 15 withcolor blue;

[NTG-context] MetaFun keywords extracted by mtxrun --script interface

2022-08-10 Thread Nicola via ntg-context
I am updating Vim syntax coloring for Metapost/MetaFun, which is now based on the files that are automatically generated with mtxrun --script interface --vim To test the results, I am opening ConTeXt's own MetaPost files in the editor and check how they look. It seems that the output

Re: [NTG-context] underbrace under matrix

2022-08-05 Thread Jethro Djan via ntg-context
Hi, I will wait for the manual. With drawing commutative diagrams, I am sure learning how to use MetaFun/MetaPost better might help. Thanks for the fantastic work. Jethro > On 5 Aug 2022, at 3:27 PM, Hans Hagen via ntg-context > wrote: > > On 8/5/2022 5:12 PM, Jethro Djan via

Re: [NTG-context] Metafun hexagons aren't hexagons

2022-07-21 Thread Alan via ntg-context
On Thu, 21 Jul 2022 18:51:23 +0200 Hans Hagen via ntg-context wrote: > On 7/21/2022 5:56 AM, Alan via ntg-context wrote: > > On Wed, 20 Jul 2022 15:26:53 -0600 > > Max Chernoff via ntg-context wrote: > > > >> The recently added Metafun hexagons seem to be p

  1   2   3   4   5   6   7   8   9   10   >